import React from "react"
// import Base from "./Base"
// import { HashRouter as Router, Switch, Link } from "react-router-dom"
// import routes from "./Routes"
// import ComponentSub from "./Routes/ComponentSub"
import Seat from "./seat"
// import ModifyTitle from "./useEffect"
// import Cal from "./useState"

class App extends React.Component {
  state = {
    isShow: true
  }
  click = () => {
    this.setState({
      isShow:!this.state.isShow
    })
  }

  render() {
    // console.log(routes)
    return (
      // <Router>
      //   <Link to="/friends">朋友</Link>
      //   |
      //   <Link to="/mine">个人中心</Link>
      //   |
      //   <Link to="/discover">发现音乐</Link>
      //   <Switch>
      //     <Suspense fallback={<h1>正在加载...</h1>}>
      //       {
      //         routes.map((route, i) => {
      //           return <ComponentSub {...route} key={i} />
      //         })
      //       }
      //     </Suspense>
      //   </Switch>

      // </Router>
      // <Cal></Cal>
      <fieldset >
        {/* {this.state.isShow?<ModifyTitle></ModifyTitle>:null}
        <button onClick={this.click}>点击</button> */}
        <Seat></Seat>
      </fieldset>

    )
  }
}
export default App